<template>
	<view v-html="html">
		
	</view>
</template>

<script>
	export default{
		data(){
			return{
				html:null
			}
		},
		onLoad(e) {
			this.$u.api.toPay({
					phoneNo: e.phone,
				})
				.then(res => {
					//将表单渲染进页面
					this.html = res;
					//在渲染完立即提交表单，就会进入支付宝支付的界面
					this.$nextTick(() => {
						window.document.forms[0].submit()
					})
					console.log(res, 88888888);
				});
			
			
		},
		methods:{
			
		}
	}
</script>